package com.cyan.note;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
// import org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Cyan-Note 陪玩订单管理系统启动类
 * 
 * @author ZhangzhenYu
 * @since 2025-01-13
 */
@SpringBootApplication(exclude = {
    RedisAutoConfiguration.class
})
@org.mybatis.spring.annotation.MapperScan("com.cyan.note.mapper")
@EnableAsync
@EnableScheduling
public class CyanNoteApplication {

    public static void main(String[] args) {
        SpringApplication.run(CyanNoteApplication.class, args);
        System.out.println();
        System.out.println("  ____  _  _    __    _  _      _  _   __  ____  ____ ");
        System.out.println(" / ___)( \\/ )  /__\\  ( \\( )___ ( \\( ) /  \\(_  _)( ___)");
        System.out.println(" \\___ \\ \\  /  /(__)\\  )  ((___) )  ( ( O   )(   )__) ");
        System.out.println(" (___/   \\/  (__)(__)(_)\\_)    (_)\\_) \\__/ (__)  (____)");
        System.out.println();
        System.out.println("🚀 Cyan-Note 陪玩订单管理系统启动成功！");
        System.out.println("📝 API文档地址: http://localhost:8080/doc.html");
        System.out.println("🔍 健康检查: http://localhost:8080/actuator/health");
        System.out.println();
    }
}